clear
use "EAS merged prepared data.dta"

**********************************************************************************
* TABLE A1: Regression results for SE1 *******************************************
**********************************************************************************

** QUESTION 1

reg full1b georgia police beating policeXbeating policeXgeorgia beatingXgeorgia policeXbeatingXgeorgia
outreg2 using "output/mergedregtable1_policebeating.tex", replace tex dec(2) sortvar(georgia police beating policeXbeating policeXgeorgia beatingXgeorgia policeXbeatingXgeorgia)

reg full1b georgia police beating policeXbeating policeXgeorgia beatingXgeorgia policeXbeatingXgeorgia age male edu material contact_any crimein12mo polstaknow often_drive working_respondent familysize urban
outreg2 using "output/mergedregtable1_policebeating.tex", append tex dec(2) sortvar(georgia police beating policeXbeating policeXgeorgia beatingXgeorgia policeXbeatingXgeorgia)

reg full1b georgia police beating policeXbeating policeXgeorgia beatingXgeorgia policeXbeatingXgeorgia age male edu material contact_any crimein12mo polstaknow often_drive working_respondent familysize urban ageXgeorgia maleXgeorgia eduXgeorgia materialXgeorgia contact_anyXgeorgia crimein12moXgeorgia polstaknowXgeorgia often_driveXgeorgia working_respondentXgeorgia familysizeXgeorgia urbanXgeorgia
outreg2 using "output/mergedregtable1_policebeating.tex", append tex dec(2) sortvar(georgia police beating policeXbeating policeXgeorgia beatingXgeorgia policeXbeatingXgeorgia)

**********************************************************************************
* TABLE A2: Regression results for SE2 *******************************************
**********************************************************************************

reg full6 georgia anonymous q6police anonXq6police anonymousXgeorgia q6policeXgeorgia anonXq6policeXgeorgia
outreg2 using "output/mergedregtable2_anon.tex", replace tex dec(2) sortvar(georgia anonymous q6police anonXq6police anonymousXgeorgia q6policeXgeorgia anonymousXq6policeXgeorgia)

reg full6 georgia anonymous q6police anonXq6police anonymousXgeorgia q6policeXgeorgia anonXq6policeXgeorgia age male edu material contact_any crimein12mo polstaknow often_drive working_respondent familysize urban
outreg2 using "output/mergedregtable2_anon.tex", append tex dec(2) sortvar(georgia anonymous q6police anonXq6police anonymousXgeorgia q6policeXgeorgia anonymousXq6policeXgeorgia)

reg full6 georgia anonymous q6police anonXq6police anonymousXgeorgia q6policeXgeorgia anonXq6policeXgeorgia age male edu material contact_any crimein12mo polstaknow often_drive working_respondent familysize urban ageXgeorgia maleXgeorgia eduXgeorgia materialXgeorgia contact_anyXgeorgia crimein12moXgeorgia polstaknowXgeorgia often_driveXgeorgia working_respondentXgeorgia familysizeXgeorgia urbanXgeorgia
outreg2 using "output/mergedregtable2_anon.tex", append tex dec(2) sortvar(georgia anonymous q6police anonXq6police anonymousXgeorgia q6policeXgeorgia anonymousXq6policeXgeorgia)

**********************************************************************************
* TABLE A3: Regression results for SE3 *******************************************
**********************************************************************************

reg full3 georgia duty reward dutyXreward dutyXgeorgia rewardXgeorgia dutyXrewardXgeorgia
outreg2 using "output/mergedregtable3_dutyreward.tex", replace tex dec(2) sortvar(georgia duty reward dutyXreward dutyXgeorgia rewardXgeorgia dutyXrewardXgeorgia)

reg full3 georgia duty reward dutyXreward dutyXgeorgia rewardXgeorgia dutyXrewardXgeorgia age male edu material contact_any crimein12mo polstaknow often_drive working_respondent familysize urban
outreg2 using "output/mergedregtable3_dutyreward.tex", append tex dec(2) sortvar(georgia duty reward dutyXreward dutyXgeorgia rewardXgeorgia dutyXrewardXgeorgia)

reg full3 georgia duty reward dutyXreward dutyXgeorgia rewardXgeorgia dutyXrewardXgeorgia age male edu material contact_any crimein12mo polstaknow often_drive working_respondent familysize urban ageXgeorgia maleXgeorgia eduXgeorgia materialXgeorgia contact_anyXgeorgia crimein12moXgeorgia polstaknowXgeorgia often_driveXgeorgia working_respondentXgeorgia familysizeXgeorgia urbanXgeorgia
outreg2 using "output/mergedregtable3_dutyreward.tex", append tex dec(2) sortvar(georgia duty reward dutyXreward dutyXgeorgia rewardXgeorgia dutyXrewardXgeorgia)

**********************************************************************************
* TABLE A4: Regression results for SE4 *******************************************
**********************************************************************************

reg full2b georgia busy highval busyXhighval busyXgeorgia highvalXgeorgia busyXhighvalXgeorgia
outreg2 using "output/mergedregtable4_timevalue.tex", replace tex dec(2) sortvar(georgia busy highval busyXhighval busyXgeorgia highvalXgeorgia busyXhighvalXgeorgia)

reg full2b georgia busy highval busyXhighval busyXgeorgia highvalXgeorgia busyXhighvalXgeorgia age male edu material contact_any crimein12mo polstaknow often_drive working_respondent familysize urban
outreg2 using "output/mergedregtable4_timevalue.tex", append tex dec(2) sortvar(georgia busy highval busyXhighval busyXgeorgia highvalXgeorgia busyXhighvalXgeorgia)

reg full2b georgia busy highval busyXhighval busyXgeorgia highvalXgeorgia busyXhighvalXgeorgia age male edu material contact_any crimein12mo polstaknow often_drive working_respondent familysize urban ageXgeorgia maleXgeorgia eduXgeorgia materialXgeorgia contact_anyXgeorgia crimein12moXgeorgia polstaknowXgeorgia often_driveXgeorgia working_respondentXgeorgia familysizeXgeorgia urbanXgeorgia
outreg2 using "output/mergedregtable4_timevalue.tex", append tex dec(2) sortvar(georgia busy highval busyXhighval busyXgeorgia highvalXgeorgia busyXhighvalXgeorgia)


